package agent.strategy.builders;

import agent.strategy.strategies.SelectMarketAndViewRepeatedly;
import agent.strategy.Strategy;
import agent.strategy.StrategyBuilder;
import api.API;
import api.MarketFactory;
import api.MarketType;
import utils.Display;

import java.util.concurrent.ScheduledExecutorService;

/**
 * User: Darren
 * Date: 18/05/13
 * Time: 3:07 PM
 */
public class BuildSelectMarketAndViewRepeatedly extends StrategyBuilder {
    private ScheduledExecutorService scheduler;
    private int intervalInSeconds;
    private MarketType marketType;

    public BuildSelectMarketAndViewRepeatedly(API api, MarketFactory marketFactory, Display display,
                                              ScheduledExecutorService scheduler, int intervalInSeconds,
                                              MarketType marketType) {
        super(api, marketFactory, display);
        this.scheduler = scheduler;
        this.intervalInSeconds = intervalInSeconds;
        this.marketType = marketType;
    }

    @Override
    public Strategy build() {
        return new SelectMarketAndViewRepeatedly(api, marketFactory, display, scheduler, intervalInSeconds, marketType);
    }
}
